package com.starry.Spring5Demo.lifeCycle;

public class Tickets {
    private String tNo;

    public Tickets() {
        System.out.println("执行无参构造...");
    }

    public void settNo(String tNo) {
        System.out.println("注入属性值...");
        this.tNo = tNo;
    }

    @Override
    public String toString() {
        return "Tickets{" +
                "tNo='" + tNo + '\'' +
                '}'+getClass().getName() + '@' + Integer.toHexString(hashCode());
    }

    public void InitBeanMethod(){
        System.out.println("初始化bean...");
    }

    public void DestoryBeanMethod(){
        System.out.println("销毁bean...");
    }
}
